import { ajax } from "../utils/request.js"

//分类数据
export function get_category() {
	return ajax({
		url: `api.php?m=Api&c=GoodsCategory&a=category`
	})
}

export function get_goods_list(category_id, p) {
	return ajax({
		url: `api.php?m=Api&c=GoodsCategory&a=goodsList`,
		method: 'POST',
		data: { category_id, p }
	})
}
